home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / togglestatusdisplay.c < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  1.1 KB  |  46 lines

  1. #include "bbs.h"
  2. #include <clib/intuition_protos.h>
  3. extern void CloseAEStats(void);
  4. void InitStatCon(void);
  5.  
  6. void ToggleStatusDisplay(void)
  7. {
  8.  if(DStatBar) {
  9.      DStatBar=0;
  10.         CloseAEStats();
  11.      if(StatusPane!=NULL)CloseWindow(StatusPane);
  12.         StatusPane=NULL;
  13.      if(BitPlanes)
  14.      {
  15.          MoveWindow(MYwindow,0,-28);
  16.         SizeWindow(MYwindow,0,28);
  17.     }else { MoveWindow(MYwindow,0,-38);
  18.              SizeWindow(MYwindow,0,38); }  
  19.      if(User.Name[0]!='\0')        StatPrintUser(&User);
  20.      //SetWindowTitles(MYwindow,titlebar,titlebar);
  21.     } else    {
  22.      DStatBar=1;
  23.      if(BitPlanes)
  24.      {
  25.         SizeWindow(MYwindow,0,-28);
  26.      MoveWindow(MYwindow,0,28);
  27.      
  28.     }else
  29.      {
  30.          SizeWindow(MYwindow,0,-38);
  31.          MoveWindow(MYwindow,0,38);
  32.      }
  33.        if (( StatusPane = (struct Window *)OpenWindow(&PaneStatus)) == NULL)
  34.          ShutDown("Cant open windows");
  35.  
  36.      InitStatCon();
  37.         MyClearStatusPane();
  38.      SetWindowTitles(MYwindow,titlebar,titlebar);
  39.         if(User.Name[0]!='\0')        StatPrintUser(&User);
  40.          StatChatFlag();
  41.     }
  42.   //SetWindowTitles(MYwindow,titlebar,titlebar);
  43. }
  44.  
  45.  
  46.